package com.secsbrain.cmdb.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 网络设备表
 *
 */
@TableName(value = "cmdb_network_device")
public class NetworkDevice implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 创建人 */
	private String creator;

	/** 更新人 */
	private String updator;

	/** 设备编号 */
	private String code;

	/** 设备型号 */
	private String model;

	/** 设备类型 */
	private String type;

	/** 上架时间 */
	@TableField(value = "start_time")
	private Date startTime;

	/** 机柜ID */
	@TableField(value = "cabinet_id")
	private Long cabinetId;

	/** 机房ID */
	@TableField(value = "idc_id")
	private Long idcId;

	/** 机架ID */
	@TableField(value = "rack_id")
	private Long rackId;

	/** 备注 */
	private String comment;
	
	private Integer udesc;
	
	private Integer uposition;
	
	@TableField(exist = false)
	private String rackName;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getUpdator() {
		return this.updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Long getCabinetId() {
		return this.cabinetId;
	}

	public void setCabinetId(Long cabinetId) {
		this.cabinetId = cabinetId;
	}

	public Long getIdcId() {
		return this.idcId;
	}

	public void setIdcId(Long idcId) {
		this.idcId = idcId;
	}

	public Long getRackId() {
		return this.rackId;
	}

	public void setRackId(Long rackId) {
		this.rackId = rackId;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getRackName() {
		return rackName;
	}

	public void setRackName(String rackName) {
		this.rackName = rackName;
	}

	public Integer getUdesc() {
		return udesc;
	}

	public void setUdesc(Integer udesc) {
		this.udesc = udesc;
	}

	public Integer getUposition() {
		return uposition;
	}

	public void setUposition(Integer uposition) {
		this.uposition = uposition;
	}
	
}
